import Cookies from 'js-cookie'

export function getToken() {
    return Cookies.get('userId')
  }
  
  export function setToken(token) {
    return Cookies.set('userId', token)
  }
  
  export function removeToken() {
    return Cookies.remove('userId')
  }


  export function getRoles() {
    return Cookies.get('roles')
  }
  
  export function setRoles(token) {
    return Cookies.set('roles', token)
  }
  
  export function removeRoles() {
    return Cookies.remove('roles')
  }